/**
 * 
 */
package com.nwpusp.display.resmgr;

import java.util.LinkedList;
import android.view.View;

/**
 * @author JustinCao
 *
 */

public abstract class ViewResourceManager extends LinkedList<View> {
	public View Fetch(Object[] param) {
		View view = this.searchView(param);
		if(view != null)
			return view;
		return allocView(param);
	}

	public void Stock(View v) {
		super.addLast(v);
	}
	
	protected abstract View allocView(Object[] param);
	protected abstract View searchView(Object[] param);
}
